import React, { Component } from 'react';
import { Route, Switch } from 'react-router-dom';
import HomeIndex from '../components/body/BodyIndex';
import AdminIndex from '../components/adminBody/AdminIndex';
import Head from '../components/Head';
import RoomIndex from '../components/roomBody/RoomIndex'
export default class CRouter extends Component {
    render() {
        return (
                <Switch>
                    <Route render={()=>
                        <div>
                            <Head/><HomeIndex/>
                        </div>
                    } path="/app/home/index" />
                    <Route component={AdminIndex} path="/app/admin/index" />
                    <Route component={RoomIndex} path="/app/room/index" />
                    />
                </Switch>
        )
    }
}